<h1>Cm contacts List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Title</th>
      <th>User</th>
      <th>Type</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($cm_contacts as $cm_contact): ?>
    <tr>
      <td><a href="<?php echo url_for('contact/edit?id='.$cm_contact->getId()) ?>"><?php echo $cm_contact->getId() ?></a></td>
      <td><?php echo $cm_contact->getTitle() ?></td>
      <td><?php echo $cm_contact->getUserId() ?></td>
      <td><?php echo $cm_contact->getTypeId() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('contact/new') ?>">New</a>
